package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ChargingPileUpdateMapper;
import com.ruoyi.system.domain.ChargingPileUpdate;
import com.ruoyi.system.service.IChargingPileUpdateService;

/**
 * 充电桩信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-06-27
 */
@Service
public class ChargingPileUpdateServiceImpl implements IChargingPileUpdateService 
{
    @Autowired
    private ChargingPileUpdateMapper chargingPileUpdateMapper;

    /**
     * 查询充电桩信息
     * 
     * @param cpId 充电桩信息主键
     * @return 充电桩信息
     */
    @Override
    public ChargingPileUpdate selectChargingPileUpdateByCpId(Long cpId)
    {
        return chargingPileUpdateMapper.selectChargingPileUpdateByCpId(cpId);
    }

    /**
     * 查询充电桩信息列表
     * 
     * @param chargingPileUpdate 充电桩信息
     * @return 充电桩信息
     */
    @Override
    public List<ChargingPileUpdate> selectChargingPileUpdateList(ChargingPileUpdate chargingPileUpdate)
    {
        return chargingPileUpdateMapper.selectChargingPileUpdateList(chargingPileUpdate);
    }

    /**
     * 新增充电桩信息
     * 
     * @param chargingPileUpdate 充电桩信息
     * @return 结果
     */
    @Override
    public int insertChargingPileUpdate(ChargingPileUpdate chargingPileUpdate)
    {
        return chargingPileUpdateMapper.insertChargingPileUpdate(chargingPileUpdate);
    }

    /**
     * 修改充电桩信息
     * 
     * @param chargingPileUpdate 充电桩信息
     * @return 结果
     */
    @Override
    public int updateChargingPileUpdate(ChargingPileUpdate chargingPileUpdate)
    {
        return chargingPileUpdateMapper.updateChargingPileUpdate(chargingPileUpdate);
    }

    /**
     * 批量删除充电桩信息
     * 
     * @param cpIds 需要删除的充电桩信息主键
     * @return 结果
     */
    @Override
    public int deleteChargingPileUpdateByCpIds(Long[] cpIds)
    {
        return chargingPileUpdateMapper.deleteChargingPileUpdateByCpIds(cpIds);
    }

    /**
     * 删除充电桩信息信息
     * 
     * @param cpId 充电桩信息主键
     * @return 结果
     */
    @Override
    public int deleteChargingPileUpdateByCpId(Long cpId)
    {
        return chargingPileUpdateMapper.deleteChargingPileUpdateByCpId(cpId);
    }
}
